<?php
/**
 * Created by PhpStorm.
 * User: wangmx
 * Date: 2016/11/17
 * Time: 17:50
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class AddressRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' => 'api',
            'prefix' => 'api/address',], function ($router) {
            $router->post('add-address',['uses' =>'Api\AddressController@addAddress']);
            $router->post('set-default',['uses' =>'Api\AddressController@setDefault']);
            $router->post('edit-address',['uses' =>'Api\AddressController@editAddress']);
            $router->post('delete-address',['uses' =>'Api\AddressController@deleteAddress']);
            $router->post('address-list',['uses' =>'Api\AddressController@addressList']);
            $router->post('address-by-id',['uses' =>'Api\AddressController@addressByID']);
        });
    }
}